package com.fenggo.platform.ordering.rest;

import com.fenggo.platform.ordering.dto.OrderRequestDTO;
import com.fenggo.platform.ordering.dto.ResultDTO;
import com.fenggo.platform.ordering.service.OrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by fushiyong on 2020/03/25.
 */

@Api(value = "OrdersController", description = "订单相关接口")
@RestController
@RequestMapping("/orders")
@Slf4j
public class OrdersController {

    @Autowired
    public OrderService orderService;

    @ApiOperation(value = "/order", notes = "创建订单接口")
    @RequestMapping(value = "/order", method = RequestMethod.POST)
    public ResultDTO postOrder() throws Exception {
        return ResultDTO.builder().data("调用成功了,,,").isSuccess(Boolean.TRUE).build();
    }


}
